<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户信息编辑</title>
    
</head>
<body class="main-body">
    <main>
        <h1>用户信息编辑</h1>
        <form action="/travel/EditUser" method="post">
            <fieldset>
                <label for="username">用户名:</label>
                <input type="text" id="username" name="username" value="${userInfo.username}"><br><br>

                <label for="password">密码:</label>
                <input type="text" id="password" name="password" value="${userInfo.password}"><br><br>

                <label for="email">邮箱:</label>
                <input type="email" id="email" name="email" value="${userInfo.email}"><br><br>

                <label for="gender">性别:</label>
                <input type="text" id="gender" name="gender" value="${userInfo.gender}"><br><br>
            </fieldset>
            <input type="submit" value="保存更改">
        </form>
    </main>
</body>


<style>
      body {
          font-family: Arial, sans-serif;
          background-color: #f4f4f4;
      }

     .main-body {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
      }

      form {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            width: 500px; 
            height:500px;
        }

        form label {
            display: inline-block;
            width: 150px; 
            text-align: right;
            margin-right: 20px;
        }

        form input {
            display: inline-block;
            width: 250px; 
            height:30px;
        }

        form input:hover {
            border-color: #888;
        }

        form input:focus {
            outline: none;
            border-color: green;
            box-shadow: 0 0 3px rgba(0, 128, 0, 0.5);
        }

       input[type="submit"] {
		    background-color: green;
		    color: white;
		    border: none;
		    padding: 10px 20px;
		    margin: 30px auto; 
		    border-radius: 4px;
		    cursor: pointer;
		    transition: background-color 0.3s ease;
		    display: block;
		}
        input[type="submit"]:hover {
            background-color: #008000;
        }
  
        main h1 {
            font-size: 24px;
            border-bottom: 1px solid #ccc;
            padding-bottom: 10px;
            margin-bottom: 20px;
        }
    </style>
</html>